// 如果没有通过拦截器配置域名的话，可以在这里写上完整的URL(加上域名部分)
let statisticsCountUrl = '/shop/house/statistics_count'
let sendSmsUrl = '/system/sms/send_sms'
let confUrl = '/system/basic/conf'
let articleDetailUrl = '/system/article/detail'
let getCityUrl = '/system/region/get_city'
let categoryUrl = '/shop/category/category'
let releaseUrl = '/shop/house/release'
let getshequlistUrl = '/shop/house/get_shequ_list'
let addAdvertUrl = '/shop/advert/add_advert'
let forumListUrl = '/shop/house/forum_list'
let lunboImgUrl = '/shop/house/lunbo_img'
let forumAddUrl = '/shop/house/forum_add'
let forumReplyUrl = '/shop/house/forum_reply'
let forumReplyActionUrl = '/shop/house/forum_reply_action'
let forumInfoUrl = '/shop/house/forum_info'
let deleteReplyUrl = '/shop/house/delete_reply'
let deleteForumUrl = '/shop/house/delete_forum'
let houseListUrl = '/shop/house/house_list'




/** 登录 */
let loginUrl = '/member/login/login'
let codeLoginUrl = '/member/login/code_login'
let registerUrl = '/member/login/register'
let wechatLoginUrl = '/member/login/wechat_login'
let bindMobileUrl = '/member/login/bind_mobile'
let forgetPassUrl = '/member/login/forgetPass'
// 列表
let selfReleaseUrl = '/shop/house/self_release'
let editUrl = '/shop/house/edit'
let submitReviewUrl = '/shop/house/submit_review'
let activeUrl = '/shop/house/active'
let detailUrl = '/shop/house/detail'
let customerUrl = '/shop/house/customer_list'
let contractCustomerUrl = '/shop/house/contract_customer'

// 我的
let materialUrl = '/member/personal/material'
let changeInfoUrl = '/member/personal/changeInfo'
let changeMobileUrl = '/member/personal/change_mobile'
let self_releaseUrl = '/shop/house/self_release'
let delUrl = '/shop/house/del'

// 家政
let order_hall_url = '/service/order/order_hall'
let receive_order_url = '/service/order/receive_order'
let service_order_self_url = '/service/order/service_order_self'
let chargeback_url = '/service/order/chargeback'
let submit_completed_url = '/service/order/submit_completed'
let star_service_url = '/service/order/star_service'
let finish_service_url = '/service/order/finish_service'
let pay_url = '/payment/pay/pay'
let wallet_info_url = '/member/personal/wallet_info'
let set_password_url = '/member/personal/set_password'
let service_cate_url = '/service/order/service_cate'
let edit_service_cate_url = '/service/order/edit_service_cate'
let bind_uid_url = '/shop/house/bind_uid'
let house_hall_url = '/shop/house/house_hall'
let seize_orders_url = '/shop/house/seize_orders'
let getRegion_url = '/system/region/getRegion'
let change_info_url = '/member/area_change/change_info'
let change_apply_url = '/member/area_change/change_apply'
let salesmanLocationUrl = '/shop/house/salesman_location'

// 分享抖音
let getTikApi = '/shop/house/getTikApi'

const install = (Vue, vm) => {

	let statistics_count = (params = {}) => vm.$u.post(statisticsCountUrl, params); //统计
	let send_sms = (params = {}) => vm.$u.post(sendSmsUrl, params); // 验证码
	let conf = (params = {}) => vm.$u.post(confUrl, params); //全局配置
	let article_detail = (params = {}) => vm.$u.post(articleDetailUrl, params); //协议
	let get_city = (params = {}) => vm.$u.post(getCityUrl, params); //字符返回所有市
	let add_advert = (params = {}) => vm.$u.post(addAdvertUrl, params); //字符返回所有市
	let salesman_location = (params = {}) => vm.$u.post(salesmanLocationUrl, params); //获取更新业务员实时定位
	let category = (params = {}) => vm.$u.post(categoryUrl, params); //首页分类
	let release = (params = {}) => vm.$u.post(releaseUrl, params); //发布房产信息
	let get_shequ_list = (params = {}) => vm.$u.post(getshequlistUrl, params);
	let forum_list = (params = {}) => vm.$u.post(forumListUrl, params);
	let lunbo_img = (params = {}) => vm.$u.post(lunboImgUrl, params);
	let forum_add = (params = {}) => vm.$u.post(forumAddUrl, params);
	let forum_reply = (params = {}) => vm.$u.post(forumReplyUrl, params);
	let forum_reply_action = (params = {}) => vm.$u.post(forumReplyActionUrl, params);
	let forum_info = (params = {}) => vm.$u.post(forumInfoUrl, params);
	let delete_reply = (params = {}) => vm.$u.post(deleteReplyUrl, params);
	let delete_forum = (params = {}) => vm.$u.post(deleteForumUrl, params);
	let house_list = (params = {}) => vm.$u.post(houseListUrl, params);
	

	/** 登录 */
	let login = (params = {}) => vm.$u.post(loginUrl, params); //登录
	let code_login = (params = {}) => vm.$u.post(codeLoginUrl, params); //验证码登录
	let register = (params = {}) => vm.$u.post(registerUrl, params); //账号密码注册
	let wechat_login = (params = {}) => vm.$u.post(wechatLoginUrl, params); //第三方微信授权
	let bind_mobile = (params = {}) => vm.$u.post(bindMobileUrl, params); //绑定手机号
	let forgetPass = (params = {}) => vm.$u.post(forgetPassUrl, params); //忘记密码
	/**我的 */
	let material = (params = {}) => vm.$u.post(materialUrl, params); //个人资料
	let change_mobile = (params = {}) => vm.$u.post(changeMobileUrl, params); //修改手机号
	let changeInfo = (params = {}) => vm.$u.post(changeInfoUrl, params); //修改个人资料


	// let self_release = (params = {}) => vm.$u.post(selfReleaseUrl, params); //忘记密码
	let submit_review = (params = {}) => vm.$u.post(submitReviewUrl, params); //提交审核
	let edit = (params = {}) => vm.$u.post(editUrl, params); //修改
	let active = (params = {}) => vm.$u.post(activeUrl, params); //上下架
	let detail = (params = {}) => vm.$u.post(detailUrl, params); //详情数据
	let customer_list = (params = {}) => vm.$u.post(customerUrl, params); //客户列表
	let contract_customer = (params = {}) => vm.$u.post(contractCustomerUrl, params); //客户列表
	let self_release = (params = {}) => vm.$u.post(self_releaseUrl, params); //客户列表
	let del = (params = {}) => vm.$u.post(delUrl, params); //客户列表

	// 家政
	let order_hall = (params = {}) => vm.$u.post(order_hall_url, params); //客户列表
	let receive_order = (params = {}) => vm.$u.post(receive_order_url, params); //客户列表
	let service_order_self = (params = {}) => vm.$u.post(service_order_self_url, params); //客户列表
	let chargeback = (params = {}) => vm.$u.post(chargeback_url, params); //客户列表
	let submit_completed = (params = {}) => vm.$u.post(submit_completed_url, params); //客户列表
	let star_service = (params = {}) => vm.$u.post(star_service_url, params); //客户列表
	let finish_service = (params = {}) => vm.$u.post(finish_service_url, params); //客户列表
	let pay = (params = {}) => vm.$u.post(pay_url, params); //客户列表
	let wallet_info = (params = {}) => vm.$u.post(wallet_info_url, params); //客户列表
	let set_password = (params = {}) => vm.$u.post(set_password_url, params); //客户列表
	let service_cate = (params = {}) => vm.$u.post(service_cate_url, params); //客户列表
	let edit_service_cate = (params = {}) => vm.$u.post(edit_service_cate_url, params); //客户列表
	let bind_uid = (params = {}) => vm.$u.post(bind_uid_url, params); //客户列表
	let house_hall = (params = {}) => vm.$u.post(house_hall_url, params); //客户列表
	let seize_orders = (params = {}) => vm.$u.post(seize_orders_url, params); //客户列表
	let getRegion = (params = {}) => vm.$u.post(getRegion_url, params); //
	let change_info = (params = {}) => vm.$u.post(change_info_url, params); //
	let change_apply = (params = {}) => vm.$u.post(change_apply_url, params); //
	let get_tik_api = (params = {}) => vm.$u.post(getTikApi, params);
	
	vm.$u.api = {
		statistics_count,
		send_sms,
		login,
		code_login,
		register,
		wechat_login,
		bind_mobile,
		forgetPass,
		material,
		self_release,
		submit_review,
		edit,
		active,
		change_mobile,
		changeInfo,
		conf,
		detail,
		article_detail,
		get_city,
		add_advert,
		salesman_location,
		category,
		customer_list,
		contract_customer,
		self_release,
		release,
		get_shequ_list,
		del,
		order_hall,
		receive_order,
		service_order_self,
		chargeback,
		submit_completed,
		star_service,
		finish_service,
		pay,
		wallet_info,
		set_password,
		service_cate,
		edit_service_cate,
		bind_uid,
		house_hall,
		seize_orders,
		getRegion,
		change_info,
		change_apply,
		forum_list,
		forum_info,
		lunbo_img,
		forum_add,
		forum_reply,
		forum_reply_action,
		delete_reply,
		delete_forum,
		house_list,
		get_tik_api
	};
}

export default {
	install
}